]> dgit.raspbian.org Git - gnome-shell.git/commit
st/texture-cache: Return a GIcon from bind_cairo_surface_property()
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 30 Jun 2020 14:48:16 +0000 (16:48 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 1 Jul 2020 10:42:57 +0000 (12:42 +0200)
commitd7cb2eeebcced0c0af43453e81ce5a7c14dcb4c4
tree699cb9fe4bf935d0e946bf3f01da6693310917ea
parent770231c2d7a0296ea4819ac9ba358e2d0cb371fa
st/texture-cache: Return a GIcon from bind_cairo_surface_property()

We still load the surface into an StImageContent, but instead of
adding the content to an actor we hand out, return the content
itself (as GIcon).

That means we lose the ability to specify an icon size, but as we
get the pixel data from a fixed-size surface anyway, that shouldn't
matter much in practice.

Not to mention that the function is only used for fallback X11 icons,
which are already shit more often than not.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1342
src/shell-app.c
src/st/st-texture-cache.c
src/st/st-texture-cache.h